<template>
    <div>
        <!--轮播图-->
        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="i in list" :key="i.id">
                <img :src="i.data" :class="isfull ? 'imgfull' : 'imgnofull'" alt="">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>

    export default {
        name: "swiper",
        data(){
            return {}
        },
        props:['list','isfull'],
    }
</script>

<style lang="scss" scoped>
    .mint-swipe {
        height: 200px;
        .mint-swipe-item {
            text-align: center;

            &:nth-child(1) {
                /*background-color: red;*/
            }
            &:nth-child(2) {
                /*background-color: blue;*/
            }
            &:nth-child(3) {
                /*background-color: cyan;*/
            }
        }
    }
    .imgfull{
        width: 100%;
        height: 100%;
    }
    .imgnofull{
        /*width: 100%;*/
        height: 100%;
        background-color: pink;
    }
</style>